<?php
/*
*	2012年6月26日23:14:30
*	导航
*	袁吉
*/
class NavigatorModel extends Model{
	public function getNavigator(){
		$navigator_list = S('navigator_list');
		if(is_array($navigator_list)){
			return $navigator_list;
		}
		$list = $this->where(array('status'=>1))->order('show_order DESC')->select();
		$navigator_list = array();
		foreach($list as $navigator){
			$navigator_list[$navigator['type']][$navigator['id']]=$navigator;
		}
		S('navigator_list',$navigator_list,C('navigator_list_stime'));
		return $navigator_list;
	}
}